//
//  LHPCountDownButton.h
//  TestDemo-button
//
//  Created by 李洪攀 on 2018/7/25.
//  Copyright © 2018年 李洪攀. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LHPCountDownButton;
typedef NSString* (^CountDownChanging)(LHPCountDownButton *countDownButton,NSInteger second);
typedef NSString* (^CountDownFinished)(LHPCountDownButton *countDownButton,NSInteger second);
typedef void (^TouchedCountDownButtonHandler)(LHPCountDownButton *countDownButton,NSInteger tag);

@interface LHPCountDownButton : UIButton
@property(nonatomic,strong) id userInfo;
///倒计时按钮点击回调
- (void)countDownButtonHandler:(TouchedCountDownButtonHandler)touchedCountDownButtonHandler;
//倒计时时间改变回调
- (void)countDownChanging:(CountDownChanging)countDownChanging;
//倒计时结束回调
- (void)countDownFinished:(CountDownFinished)countDownFinished;
///开始倒计时
- (void)startCountDownWithSecond:(NSInteger)second;
//停止倒计时
- (void)stopCountDown;

@end
